Nginx 与 Apache2 也许会有冲突
sudo apt-get install php-fpm
sudo service php7.4-fpm restart
sudo nano /etc/nginx/sites-available/default
location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.4-fpm.sock;
}
sudo service nginx restart